#!/usr/bin/python

import storagehash

storage = storagehash.StorageHash()
storage.set_storage_path('/home/squat/tmp/2012-08-05/test/storage/')
storage.create_backup('x')

block_size=4096000
i=0
with open("/dev/vg01/test", "rb") as f:
    block = f.read(block_size)
    while block:
    	storage.store_block(i*block_size, block)
       	block = f.read(block_size)
	i=i+1
